<!DOCTYPE html>
<!-- saved from url=(0037)http://www.mengma.com/class/course/48 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh-CN" class=" " style="overflow-y: hidden;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="x-dns-prefetch-control" content="on">
	<meta name="renderer" content="webkit">
	<title>PHP - 萌码</title>
	<meta name="author" content="Mengma">
	<meta name="description" content="萌码是计算教育领域的先行者，领先的跟随式教学、图形化教学等让计算学习更有趣、更高效。萌码和杰出的人一同前行，让人们享受最好的教育。">
	<meta name="keywords" content="萌码,教育,在线教育,在线编程教育,跟随式,图形化,编程,计算,代码,猛犸">
	<meta name="viewport" content="width=device-width,initial-scale=1">
	<meta property="og:type" content="website">
	<meta property="og:title" content="PHP - 萌码">
	<meta property="og:url" content="http://www.mengma.com/class/course/48">
	<meta property="og:description" content="萌码是计算教育领域的先行者，领先的跟随式教学、图形化教学等让计算学习更有趣、更高效。萌码和杰出的人一同前行，让人们享受最好的教育。">
	<meta property="og:site_name" content="萌码">
	<meta property="og:image" content="http://s.mengma.com/img/mm_logo.png">
	<link rel="canonical" href="http://www.mengma.com/class/course/48">
	<link rel="shortcut icon" type="image/x-icon" href="http://www.mengma.com/favicon.ico">
	<link rel="icon" type="image/png" href="http://s.mengma.com/img/mm_icon.png">
	<link rel="dns-prefetch" href="http://www.mengma.com/">
	<link rel="dns-prefetch" href="http://passport.mengma.com/">
	<link rel="dns-prefetch" href="http://profile.mengma.com/">
	<link rel="dns-prefetch" href="http://ask.mengma.com/">
	<link rel="dns-prefetch" href="http://s.mengma.com/">
	<link rel="dns-prefetch" href="http://www.google-analytics.com/">
	<link rel="stylesheet" type="text/css" href="./php/bootstrap.min_385b96--.css">
	<link rel="stylesheet" type="text/css" href="./php/font-awesome.min_234f99--.css">
	<link rel="stylesheet" type="text/css" href="./php/nprogress_712236--.css">
	<link rel="stylesheet" type="text/css" href="./php/mm_common_dc4502--.css">
	<!--[if lt IE 9]><script type="text/javascript" src="http://s.mengma.com/js/html5shiv.min_2536f8--.js"></script><script type="text/javascript" src="http://s.mengma.com/js/respond.min_9cccbc--.js"></script><![endif]-->
	<script src="./php/hm.js"></script><script type="text/javascript" src="./php/markdown.min_6eecac--.js"></script>
	<script type="text/javascript" src="./php/marked_4af72c--.js"></script>
<link rel="stylesheet" href="./php/mm_coursev1_650a4a--.css">
</head>
<body><link href="./php/jiathis_share.css" rel="stylesheet" type="text/css"><iframe frameborder="0" style="position: absolute; display: none; opacity: 0;" src="./php/saved_resource.html"></iframe><div class="jiathis_style" style="position: absolute; z-index: 1000000000; display: none; top: 50%; left: 50%; overflow: auto;"></div><div class="jiathis_style" style="position: absolute; z-index: 1000000000; display: none; overflow: auto;"></div><iframe frameborder="0" src="./php/jiathis_utility.html" style="display: none;"></iframe>
	<div class="mm_wrapper"> 
		<nav class="mm_navbar navbar navbar-default navbar-fixed-top navbar-fixed-top-1" role="navigation">	
			<input type="hidden" name="initEmail" value="" id="initEmail">
			<div class="header_email">
				<p>大神，你还没有绑定你的邮箱哦~<a href="http://profile.mengma.com/settings?type=3" data-id="1" id="mm_email_bind">
				立即去绑定</a>~
				</p>				
			</div>
			<div class="container">
				<div class="navbar-header">
					<a href="http://www.mengma.com/" class="mm_navbar_brand">
						<img src="./php/logo.svg" class="mm_navbar_brand_logo">
					</a>					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#mm_navbar_collapse">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
				</div>
				<div id="mm_navbar_collapse" class="collapse navbar-collapse">
					<ul class="nav navbar-nav navbar-right mm_navbar_nav">
						<li class="navbar_slide_li">
							<a href="http://www.mengma.com/volumes" data-type="0">
								<span><img src="./php/mm_gray_0.svg" alt="课程" class="mm_icon_qa"> 课程</span>
							</a>						</li>
						<li class="navbar_slide_li">
							<a href="http://oj.mengma.com/" data-type="1">
								<span><img src="./php/mm_gray_1.svg" alt="" class="mm_icon_oj"> 实战</span>
							</a>
						</li>
						<li class="navbar_slide_li">
							<a href="http://qa.mengma.com/" data-type="2">
								<span><img src="./php/mm_gray_2.svg" alt="问答" class="mm_icon_oj"> 问答</span>
							</a>
						</li>
						<li class="mm_navbar_reg">
							<a href="http://passport.mengma.com/reg/">注册</a>
						</li>
						<li class="mm_navbar_login">
							<a href="http://passport.mengma.com/">登录</a>
						</li>					</ul>
				</div>
			</div>
		</nav>
		<div class="mm_loginTips" style="display:none;">
			<div class="mm_loginBox">
				<span>x</span>
				<p>少年你好，只有登录用户才能使用网站功能哦！快去登录吧！</p>
				<a id="loginBtn">登录</a>
			</div>
		</div>
		<div class="mm_forbidSkipClass" style="display:none;">
			<div class="mm_loginBox">
				<span>x</span>
				<p>本节课暂未解锁，请先学习之前的课程。</p>
				<a id="mm_forbidSkipClass">好的</a>
			</div>
		</div>

		<div class="mm_top">
			<!--[if lt IE 9]><div class="mm_error">您的浏览器版本过旧，为了正常地访问网站，我们推荐您使用<a target="_blank" href="http://www.google.cn/chrome/">Google Chrome</a>浏览器。</div><![endif]-->
			<div class="jumbotron mm_jumbotron">
				<div class="container">
					<div class="col-md-8">
						<h1>
							<img src="./php/php.png" class="hidden-xs mm_class_logo" alt="PHP课程图标">
							<span class="mm_class_title">PHP<span>
						</span></span></h1>
						<h2>PHP（外文名:PHP: Hypertext Preprocessor，中文名：“超文本预处理器”）是一种通用开源脚本语言。语法吸收了C语言、Java和Perl的特点，利于学习，使用广泛，主要适用于Web开发领域。PHP 独特的语法混合了C、Java、Perl以及PHP自创的语法。它可以比CGI或者Perl更快速地执行动态网页。用PHP做出的动态页面与其他的编程语言相比，PHP是将程序嵌入到HTML（标准通用标记语言下的一个应用）文档中去执行，执行效率比完全生成HTML标记的CGI要高许多；PHP还可以执行编译后代码，编译可以达到加密和优化代码运行，使代码运行更快。</h2>
						<div class="col-md-6 text-center mm_like">
							<a href="javascript:void(0)" id="mm_btn_like" class="btn btn-block mm_btn_like">
								<i class="fa fa-thumbs-up"></i> <span id="mm_like_count">1025</span>个赞
							</a>
						</div>
						<div class="col-md-6 text-center mm_share">
							<a href="javascript:void(0)" id="mm_btn_share" class="btn btn-block mm_btn_share">
								<i class="fa fa-share-alt"></i> 分享
							</a>
						</div>
					</div>
					<div class="modal fade" id="mm_share_popout" tabindex="-1" role="dialog" aria-labelledby="mm_share_title" aria-hidden="true">
						<div class="modal-dialog">
							<div class="modal-content mm_panel">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
									<h4 class="modal-title" id="mm_share_title">分享</h4>
								</div>
								<div class="modal-body">
									<div class="jiathis_style_32x32 clearfix">
										<a class="jiathis_button_qzone" title="分享到QQ空间"><span class="jiathis_txt jtico jtico_qzone"></span></a>
										<a class="jiathis_button_tsina" title="分享到微博"><span class="jiathis_txt jtico jtico_tsina"></span></a>
										<a class="jiathis_button_tqq" title="分享到腾讯微博"><span class="jiathis_txt jtico jtico_tqq"></span></a>
										<a class="jiathis_button_renren" title="分享到人人网"><span class="jiathis_txt jtico jtico_renren"></span></a>
										<a class="jiathis_button_kaixin001" title="分享到开心网"><span class="jiathis_txt jtico jtico_kaixin001"></span></a>
										<a href="http://www.jiathis.com/share?uid=1761246" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank"></a>
									</div>
									<script type="text/javascript">
									var jiathis_config = {
										data_track_clickback: true,
										url: "http://www.mengma.com/class/course/48",
										summary: "PHP（外文名:PHP: Hypertext Preprocessor，中文名：“超文本预处理器”）是一种通用开源脚本语言。语法吸收了C语言、Java和Perl的特点，利于学习，使用广泛，主要适用于Web开发领域。PHP 独特的语法混合了C、Java、Perl以及PHP自创的语法。它可以比CGI或者Perl更快速地执行动态网页。用PHP做出的动态页面与其他的编程语言相比，PHP是将程序嵌入到HTML（标准通用标记语言下的一个应用）文档中去执行，执行效率比完全生成HTML标记的CGI要高许多；PHP还可以执行编译后代码，编译可以达到加密和优化代码运行，使代码运行更快。",
										title: "给大家介绍一个学习 PHP 的好地方~ http://www.mengma.com/class/course/48 #萌码#",
										pic: "http://s.mengma.com/img/mm_class/php.png",
										ralateuid:{
											"tsina": "5296436353"
										},
										appkey:{
											"tsina": "4092659152"
										},
										shortUrl: false,
										hideMore: false
									};
									</script>
									<script type="text/javascript" src="./php/jia.js" async=""></script>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="mm_middle">
			<div class="container">
				<div class="col-md-8 mm_class_content">
					<div class="text-center mm_continue">
<a href="javascript:void(0)" class="btn btn-warning btn-block mm_btn_continue">
						开始学习
						</a>
					</div>
					<div id="mm_class_list" class="panel-group mm_class_list">
<div id="mm_class_panel_0" class="panel panel-default mm_class_panel">
							<div class="panel-heading mm_class_panel_heading clearfix" data-toggle="collapse" data-parent="#mm_class_list" href="#mm_class_panel_list_0">
								<div class="col-md-2 col-sm-2 mm_class_panel_progress">
									<img src="./php/0.png" class="img-circle hidden-xs mm_class_progress">
								</div>
								<div class="col-md-8 col-sm-8 mm_class_panel_title_group">
									<div class="panel-title mm_class_panel_title">概述</div>
									<div class="mm_class_panel_subtitle">本章介绍php是什么，能做什么。PHP同时支持面向过程和面向对象编程。还有一点就是完全免费，你不需要对它的任何东西付费。下面让我们进入到PHP学习之路。</div>
								</div>
								<div class="col-md-2 col-sm-2 mm_class_angle" style="opacity: 0;">
									<img src="./php/mm_arrow_down.png" class="mm_arrow_down">
								</div>
							</div>
							<ul id="mm_class_panel_list_0" class="panel-body panel-collapse collapse mm_class_panel_body clearfix">
<a href="javascript:void(0)" data-lid="472" data-ctype="0">

									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">概述</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">PHP能做什么</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>							</ul>
						</div><div id="mm_class_panel_1" class="panel panel-default mm_class_panel">
							<div class="panel-heading mm_class_panel_heading clearfix" data-toggle="collapse" data-parent="#mm_class_list" href="#mm_class_panel_list_1">
								<div class="col-md-2 col-sm-2 mm_class_panel_progress">
									<img src="./php/0.png" class="img-circle hidden-xs mm_class_progress">
								</div>
								<div class="col-md-8 col-sm-8 mm_class_panel_title_group">
									<div class="panel-title mm_class_panel_title">php基本语法</div>
									<div class="mm_class_panel_subtitle">php基本语法</div>
								</div>
								<div class="col-md-2 col-sm-2 mm_class_angle" style="opacity: 0;">
									<img src="./php/mm_arrow_down.png" class="mm_arrow_down">
								</div>
							</div>
							<ul id="mm_class_panel_list_1" class="panel-body panel-collapse collapse mm_class_panel_body clearfix">
<a href="javascript:void(0)" data-lid="475" data-ctype="0">

									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">PHP标记</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">打印输出</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">从 HTML 中分离</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">指令分隔符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">注释</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>							</ul>
						</div><div id="mm_class_panel_2" class="panel panel-default mm_class_panel">
							<div class="panel-heading mm_class_panel_heading clearfix" data-toggle="collapse" data-parent="#mm_class_list" href="#mm_class_panel_list_2">
								<div class="col-md-2 col-sm-2 mm_class_panel_progress">
									<img src="./php/0.png" class="img-circle hidden-xs mm_class_progress">
								</div>
								<div class="col-md-8 col-sm-8 mm_class_panel_title_group">
									<div class="panel-title mm_class_panel_title">类型</div>
									<div class="mm_class_panel_subtitle">PHP 支持 8 种原始数据类型</div>
								</div>
								<div class="col-md-2 col-sm-2 mm_class_angle" style="opacity: 0;">
									<img src="./php/mm_arrow_down.png" class="mm_arrow_down">
								</div>
							</div>
							<ul id="mm_class_panel_list_2" class="panel-body panel-collapse collapse mm_class_panel_body clearfix">
<a href="javascript:void(0)" data-lid="513" data-ctype="0">

									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">类型</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">Boolean 布尔类型</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">Integer 整型</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">Float 浮点型</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">String 字符串</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">Array 数组</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">Object 对象</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">Resource</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">NULL</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">Callback回调类型</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">伪类型</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">类型转换的判别</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>							</ul>
						</div><div id="mm_class_panel_3" class="panel panel-default mm_class_panel">
							<div class="panel-heading mm_class_panel_heading clearfix" data-toggle="collapse" data-parent="#mm_class_list" href="#mm_class_panel_list_3">
								<div class="col-md-2 col-sm-2 mm_class_panel_progress">
									<img src="./php/0.png" class="img-circle hidden-xs mm_class_progress">
								</div>
								<div class="col-md-8 col-sm-8 mm_class_panel_title_group">
									<div class="panel-title mm_class_panel_title">变量</div>
									<div class="mm_class_panel_subtitle">变量来源于数学，是计算机语言中能储存计算结果或能表示值抽象概念。变量可以通过变量名访问。</div>
								</div>
								<div class="col-md-2 col-sm-2 mm_class_angle" style="opacity: 0;">
									<img src="./php/mm_arrow_down.png" class="mm_arrow_down">
								</div>
							</div>
							<ul id="mm_class_panel_list_3" class="panel-body panel-collapse collapse mm_class_panel_body clearfix">
<a href="javascript:void(0)" data-lid="524" data-ctype="0">

									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">变量基础</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">预定义变量</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">变量范围</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">可变变量</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">来自星星的变量</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>							</ul>
						</div><div id="mm_class_panel_4" class="panel panel-default mm_class_panel">
							<div class="panel-heading mm_class_panel_heading clearfix" data-toggle="collapse" data-parent="#mm_class_list" href="#mm_class_panel_list_4">
								<div class="col-md-2 col-sm-2 mm_class_panel_progress">
									<img src="./php/0.png" class="img-circle hidden-xs mm_class_progress">
								</div>
								<div class="col-md-8 col-sm-8 mm_class_panel_title_group">
									<div class="panel-title mm_class_panel_title">常量和表达式</div>
									<div class="mm_class_panel_subtitle">“常量”在程序运行时，不会被修改的量。换言之，常量虽然是为了硬件、软件、编程语言服务，但是它并不是因为硬件、软件、编程语言而引入。</div>
								</div>
								<div class="col-md-2 col-sm-2 mm_class_angle" style="opacity: 0;">
									<img src="./php/mm_arrow_down.png" class="mm_arrow_down">
								</div>
							</div>
							<ul id="mm_class_panel_list_4" class="panel-body panel-collapse collapse mm_class_panel_body clearfix">
<a href="javascript:void(0)" data-lid="529" data-ctype="0">

									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">常量</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">魔术变量</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">表达式</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>							</ul>
						</div><div id="mm_class_panel_5" class="panel panel-default mm_class_panel">
							<div class="panel-heading mm_class_panel_heading clearfix" data-toggle="collapse" data-parent="#mm_class_list" href="#mm_class_panel_list_5">
								<div class="col-md-2 col-sm-2 mm_class_panel_progress">
									<img src="./php/0.png" class="img-circle hidden-xs mm_class_progress">
								</div>
								<div class="col-md-8 col-sm-8 mm_class_panel_title_group">
									<div class="panel-title mm_class_panel_title">运算符</div>
									<div class="mm_class_panel_subtitle">运算符用于执行程序代码运算，会针对一个以上操作数项目来进行运算</div>
								</div>
								<div class="col-md-2 col-sm-2 mm_class_angle" style="opacity: 0;">
									<img src="./php/mm_arrow_down.png" class="mm_arrow_down">
								</div>
							</div>
							<ul id="mm_class_panel_list_5" class="panel-body panel-collapse collapse mm_class_panel_body clearfix">
<a href="javascript:void(0)" data-lid="532" data-ctype="0">

									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">运算符优先级</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">算术运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">赋值运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">位运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">比较运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">错误控制运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">执行运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">递增运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">递减运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">逻辑运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">字符串运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">数组运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>                                    
								<a href="javascript:void(0)">									<li class="mm_class_item clearfix">
										<div class="col-md-2 col-sm-2 mm_class_check">
											<img src="./php/mm_check_logo_off.png" class="hidden-xs mm_class_checklogo">										</div>
										<div class="col-md-8 col-sm-8 mm_class_item_title">类型运算符</div>
										<div class="col-md-2 col-sm-2 mm_class_angle hidden-xs">
											<img src="./php/mm_arrow_right.png" class="mm_arrow_right">
										</div>
									</li>
								</a>							</ul>
						</div>					</div>					<div class="text-center mm_continue">
<a href="javascript:void(0)" class="btn btn-warning btn-block mm_btn_continue">
						开始学习
						</a>
					</div>
				</div>
				<div class="col-md-4 mm_class_sidebar">
					<div class="mm_class_sidebar_tag">
						<h2 class="mm_sidebar_title">
							<i class="fa fa-tag mm_icon mm_icon_left"></i>标签
						</h2>
						<div>
<a href="http://www.mengma.com/tag/detail/tag/php" target="_blank">
                			<span class="mm_tag_span">
                  				<img src="./php/mm_label_hover.png" class="mm_tag_img">
                 				<span class="mm_tag_name">php</span>
                			</span>
              			</a>				            <a href="http://www.mengma.com/tag/">
				                <span class="mm_tag_span">
				                  <img src="./php/mm_label_hover.png" class="mm_tag_img">
				                  <span class="mm_tag_name">更多</span>
				                </span>
				            </a>
						</div>					</div>
				</div>
			</div>
		</div>
		<div class="mm_bottom">
			<div class="container">
				<div class="hidden-xs mm_meta">
					<a href="http://www.mengma.com/about/#mm_about_us" target="_blank">关于我们</a>
					<a href="http://www.mengma.com/about/#mm_media_reports" target="_blank">媒体报道</a>
					<a href="http://www.mengma.com/about/#mm_link" target="_blank">友情链接</a>
					<a href="http://www.mengma.com/about/#mm_recruitment" target="_blank">人才招聘</a>
					<a href="http://www.mengma.com/about/#mm_contact_us" target="_blank">联系我们</a>
					<a href="http://www.mengma.com/about/#mm_feedback" target="_blank">意见反馈</a>
					<a href="http://www.mengma.com/about/#mm_service" target="_blank">服务条款</a>
				</div>
				<div class="mm_social">
					<img src="./php/qr_wechat.png">
				</div>
				<div class="mm_social">
					<a href="http://weibo.com/mengmacom" target="_blank"><img src="./php/i_weibo.png" class="mm_footer_social_icon"></a>
					<a href="javascript:void(0)" onclick="$(&#39;.mm_social&gt;img&#39;).show()"><img src="./php/i_wechat.png" class="mm_footer_social_icon"></a>
					<a href="http://tieba.baidu.com/f?kw=%E8%90%8C%E7%A0%81" target="_blank"><img src="./php/i_tieba.png" class="mm_footer_social_icon"></a>
				</div>
				<div class="text-center mm_copyright">
					<div>
					<img src="./php/mm_logo.png" style="margin-right:18px;">Copyright  ©  2015 MengMa.com. All Rights Reserved. 京ICP备14043944号.</div>
				</div>
			</div>
		</div>
	</div>

<script type="text/javascript" src="./php/common.min_e424ea--.js"></script>
<script type="text/javascript" src="./php/bootstrap.min_7b82cf--.js"></script>
<script type="text/javascript" src="./php/mm_common_018fd9--.js"></script><script src="./php/h.js" type="text/javascript"></script><div id="ascrail2000" class="nicescroll-rails nicescroll-rails-vr" style="width: 8px; z-index: 99; cursor: default; position: fixed; top: 0px; height: 100%; right: 0px; opacity: 0;"><div class="nicescroll-cursors" style="position: relative; top: 414px; float: right; width: 8px; height: 195px; border-radius: 5px; background-color: rgb(122, 119, 119); background-clip: padding-box;"></div></div>
<script src="./php/mm_course_8013b2--.js"></script>
<script type="text/javascript">
	
/* tag hover */
var tag_hover = function(selector, changeColor) {
     $(selector).on("mouseover", function() {
          $(this).css("background-color", "#415E6F");
          $(this).find("img").eq(0).css("opacity", 1);
     }).on("mouseleave", function() {
          $(this).css("background-color", changeColor);
          $(this).find("img").eq(0).css("opacity", 0.2);

     });
}
tag_hover(".mm_tag_span", "#C9CFD3");
$(function() {
	/*关闭登录提示框*/
	$(".mm_loginBox span").on("click",function(){
		$(this).parent().parent().hide()
	});
	$(".mm_btn_continue").each(function(){
		$(this).click(function(){
			if($(".mm_user").length == 0){
				$(".mm_loginTips").css('display','block');
			}else{
				if(0=="100"){
					window.location.href = "javascript:void(0)";
				}else{
					window.location.href = "http://www.mengma.com/class/lesson/472/0";
				}
			}
		});
	});

	$("#loginBtn").on('click',function(){
		var link = window.location.href;
		window.location.href = "http://passport.mengma.com/?continue=" + link;
	});
	$('.mm_class_panel_body  a').each(function(){
		$(this).click(function(){
			var lid = $(this).attr('data-lid');
			var aTarget = "http://www.mengma.com/class/lesson/"+$(this).data("lid")+"/"+$(this).data("ctype")
			if ($(".mm_user").length == 0) {
				$(".mm_loginTips").css('display','block');
			}else{
				if(lid != undefined){
					window.location.href = aTarget;
				}else{
					$(".mm_forbidSkipClass").show();
				}
			}
		});
	});
	$("#mm_btn_like").click(function() {
		M.ajax("/api/class/like/", {
			vid: 48		}, function(data) {
			if (data['code'] == "0") {
				$("#mm_like_count").html(parseInt($("#mm_like_count").html()) + 1);
			} else if (data['code'] == "405") {
				Phenix.init({
					width: 500,
					height: 300,
					template: "<div style=\"color:{{color}};\" class=\"mm_temp_face\">{{face}}</div><div class=\"mm_temp_title\">{{title}}</div>",
					data: {
						color: "#36b14a",
						face: ":)",
						title: "你已经赞过了！",
					}
				}).show(function() {
					setTimeout(function() {Phenix.hide();},3000);
				});
			} else if (data['code'] == "1") {
				$(".mm_loginTips").css('display','block');
				$("#mm_btn_like").css({"backgroundColor" : "gba(91, 222, 104, 0.15)", "color" : "white"});
			}
		});
	});
	$("#mm_forbidSkipClass").on('click',function(){
		$(this).parent().parent().hide();
	})
});
</script>
<a href="javascript:void(0)" id="mm_backtop" style="display: inline;"><i class="fa fa-angle-double-up"></i></a><a href="javascript:void(0)" id="mm_backtop"><i class="fa fa-angle-double-up"></i></a></body></html>